home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
- Begin VB.Form frmMain
- BorderStyle = 1 'Fixed Single
- Caption = "QBE Example"
- ClientHeight = 3180
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 5925
- Icon = "frmMain.frx":0000
- KeyPreview = -1 'True
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3180
- ScaleWidth = 5925
- StartUpPosition = 2 'CenterScreen
- Begin MSDBGrid.DBGrid DBGrid1
- Bindings = "frmMain.frx":030A
- Height = 1050
- Left = 120
- OleObjectBlob = "frmMain.frx":0321
- TabIndex = 7
- Top = 1590
- Width = 5685
- End
- Begin VB.CommandButton cmdClear
- Caption = "&Clear Fields"
- Height = 405
- Left = 1350
- TabIndex = 6
- Top = 2715
- Width = 1560
- End
- Begin VB.CommandButton cmdexit
- Caption = "E&xit"
- Height = 390
- Left = 4650
- TabIndex = 5
- Top = 2715
- Width = 1215
- End
- Begin VB.CommandButton Command1
- Caption = "&Run Search"
- Height = 405
- Left = 2940
- TabIndex = 4
- Top = 2715
- Width = 1560
- End
- Begin VB.Data PjSData1
- Align = 1 'Align Top
- Caption = "QBE Example"
- Connect = "Access"
- DatabaseName = "D:\PjS Inc\Development\QBE Example\devLog.mdb"
- DefaultCursorType= 0 'DefaultCursor
- DefaultType = 2 'UseODBC
- Enabled = 0 'False
- Exclusive = 0 'False
- Height = 360
- Left = 0
- Options = 0
- ReadOnly = 0 'False
- RecordsetType = 1 'Dynaset
- RecordSource = "Log"
- Top = 0
- Width = 5925
- End
- Begin VB.ComboBox cboCategory
- DataField = "Category"
- DataSource = "PjSData1"
- Height = 315
- ItemData = "frmMain.frx":1218
- Left = 1545
- List = "frmMain.frx":1222
- TabIndex = 1
- Top = 630
- Width = 3735
- End
- Begin VB.TextBox txtDescription
- BackColor = &H00FFFFFF&
- DataField = "Description"
- DataSource = "PjSData1"
- Height = 525
- Left = 1530
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 0
- Top = 1005
- Width = 4290
- End
- Begin VB.Label Label2
- BackStyle = 0 'Transparent
- Caption = "Description"
- BeginProperty Font
- Name = "News Gothic MT"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 120
- TabIndex = 3
- Top = 990
- Width = 1410
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "Category"
- BeginProperty Font
- Name = "News Gothic MT"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 435
- TabIndex = 2
- Top = 600
- Width = 1140
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdClear_Click()
- DBGrid1.Refresh
- ClearFields frmMain
- PjSData1.Enabled = False
- End Sub
- Private Sub cmdexit_Click()
- Unload Me
- End Sub
- Private Sub Command1_Click()
- If DoQuery(frmMain, "Log", PjSData1) Then
- 'OK
- PjSData1.Recordset.MoveLast
- PjSData1.Recordset.MoveFirst
- MsgBox Trim$(Str$(PjSData1.Recordset.RecordCount)) & " Records Found!", vbInformation
- DBGrid1.Refresh
- PjSData1.Enabled = False
- Else
- PjSData1.Enabled = False
- 'Nothing Found
- End If
- End Sub
- Private Sub Form_Load()
- PjSData1.DatabaseName = App.Path & "\devLog.mdb"
- PjSData1.Enabled = False
- ClearFields frmMain
- End Sub
-